﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="UseProfileDisplay.aspx.vb" Inherits="TeachersWorkSheets.UseProfileDisplay" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style5
        {
            width: 100%;
        }
        .style6
        {
            width: 352px;
        }
        .style7
        {
            width: 437px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp;<p>
        &nbsp;<p>
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [UserProfile] WHERE ([DinerId] = ?)">
            <SelectParameters>
                <asp:SessionParameter Name="DinerId" SessionField="username" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <table class="style5">
        <tr>
            <td align="right" class="style6" rowspan="4">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="DinerId" DataSourceID="SqlDataSource1" 
            ForeColor="#333333" GridLines="None" Width="138px" CssClass="profilePicture" 
                    style="margin-left: 0px; margin-right: 0px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="Picture">
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" Height="109px" 
                            ImageUrl='<%# Eval("Portrait") %>' Width="136px" />
                    </ItemTemplate>
                    <ControlStyle CssClass="profilePicture" Height="150px" Width="120px" />
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
            </td>
            <td align="center" class="style7">
                &nbsp;</td>
            <td align="justify">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                    CellPadding="4" DataKeyNames="DinerId" DataSourceID="SqlDataSource1" 
                    ForeColor="#333333" GridLines="None" Height="120px" 
                    style="margin-left: 18px; margin-top: 0px" Width="606px">
                    <AlternatingRowStyle BackColor="White" />
                    <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
                    <EditRowStyle BackColor="#2461BF" />
                    <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
                    <Fields>
                        <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
                            SortExpression="FirstName" />
                        <asp:BoundField DataField="LastName" HeaderText="LastName" 
                            SortExpression="LastName" />
                        <asp:BoundField DataField="DateOfBirth" HeaderText="DateOfBirth" 
                            SortExpression="DateOfBirth" />
                        <asp:BoundField DataField="Grades" HeaderText="Grades" 
                            SortExpression="Grades" />
                        <asp:BoundField DataField="TeachingSubject" HeaderText="TeachingSubject" 
                            SortExpression="TeachingSubject" />
                        <asp:BoundField DataField="Gender" HeaderText="Gender" 
                            SortExpression="Gender" />
                        <asp:BoundField DataField="RegistrationDate" HeaderText="RegistrationDate" 
                            SortExpression="RegistrationDate" />
                    </Fields>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                </asp:DetailsView>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    </asp:Content>
